package com.hoow.shakoow.utils.analytics.bean

import com.hoow.shakoow.ProjectConfig
import com.hoow.shakoow.utils.UserStateUtil
import com.hoow.shakoow.utils.analytics.timezone.TimeZoneUtil
import com.hoow.shakoow.utils.analytics.util.AnalyticsUtil

open class ParamBase(
    var token: String = "",//token
    var userId: String = "",//userId
    var androidId: String = "",//安卓id
    var advertId: String = "",//广告id
    var version: String = "",//app版本号
    var product: String = "",//产品
    var app: String = "",//产品
    var appVersion: String = "",//版本号
    var country: String = "",//国家
    var clientType: String = "",//终端类型
    var showLoading: Boolean = true,//是否显示loading
) {
    init {
        this.token = UserStateUtil.mToken
        this.userId = UserStateUtil.mUserId
        this.androidId = AnalyticsUtil.getAndroidId()
        this.advertId = AnalyticsUtil.getAdId()
        this.version = ProjectConfig.Version.toString()
        this.appVersion = ProjectConfig.Version.toString()
        this.product = ProjectConfig.Product
        this.app = ProjectConfig.Product
        this.clientType = "ANDROID"
        this.country = TimeZoneUtil.currentTimeZoneCountry()
    }
}